﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZSZ.Service.Entity
{
   public class HouseEntity:BaseEntity
    {
        public long CommunityId { get; set; }
        public virtual CommunitiesEntity Community { get; set; }
        public long RommTypeId { get; set; }
        /// <summary>
        /// 房屋户型类型(3室1厅)
        /// </summary>
        public virtual IdNamesEntity RoomType { get; set; }
        /// <summary>
        /// 地址（几楼几零几）
        /// </summary>
        public string Address { get; set; }
        /// <summary>
        /// 月租金
        /// </summary>
        public int MonthRent{ get; set; }
        public long StatusId { get; set; }
        public virtual IdNamesEntity Status{ get; set; }
        /// <summary>
        /// 面积
        /// </summary>
        public decimal Area { get; set; }
        public long DecorateStatusId { get; set; }
        /// <summary>
        /// 装修状态
        /// </summary>
        public virtual IdNamesEntity DecorateStatus { get; set; }
        /// <summary>
        /// 总楼层数
        /// </summary>
        public int TotalFloorCount { get; set; }
        /// <summary>
        /// 楼层数
        /// </summary>
        public int FloorIndex { get; set; }
        /// <summary>
        /// 房屋类型（经济，商用啥的）
        /// </summary>
        public long TypeId { get; set; }
        public virtual IdNamesEntity Type { get; set; }
        public string Direction { get; set; }
        /// <summary>
        /// 可看房时间
        /// </summary>
        public DateTime LookableDateTime { get; set; }
        /// <summary>
        /// 可入住时间
        /// </summary>
        public DateTime CheckInDateTime { get; set; }
        /// <summary>
        /// 业主姓名
        /// </summary>
        public string OwnerName { get; set; }
        /// <summary>
        /// 业主手机号
        /// </summary>
        public string OwnerPhoneNum { get; set; }
        /// <summary>
        /// 房屋描述
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 房屋配置
        /// </summary>
        public virtual ICollection<AttachmentEntity> Attachments { get; set; } = new List<AttachmentEntity>();
        /// <summary>
        /// 反向导航属性
        /// </summary>
        public virtual ICollection<HousePicEntity> HousePics { get; set; } = new List<HousePicEntity>();
    }
}
